// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@TABVIEWPANEL}}-tab-view-panel/\{{spinalCase ctrl.codeName}}-tab-view-panel-model.ts.hbs生成
import { ITabViewPanelModel } from "@/core";

function getModel(): ITabViewPanelModel {
    return {
        name: "{{ctrl.name}}",
        caption: "{{ctrl.editItemCaption}}",
        codeName: "{{ctrl.codeName}}",
        controlType: '{{ctrl.controlType}}',
        cssName: "{{#if ctrl.psSysCss}}{{ctrl.psSysCss.cssName}}{{/if}}",
        {{#if ctrl.embeddedPSAppDEView}}
        accessKey: "{{ctrl.embeddedPSAppDEView.accessKey}}",
        {{/if}}
        {{#if ctrl.psNavigateContexts}}
        navigateContext: {{> @macro/common/navparam.hbs appNavParams=ctrl.psNavigateContexts}},
        {{/if}}
        {{#if ctrl.psNavigateParams}}
        navigateParams: {{> @macro/common/navparam.hbs appNavParams=ctrl.psNavigateParams}},
        {{/if}}
		embedViewCodeName: "{{ctrl.embeddedPSAppDEView.codeName}}",        
    }
}
export const model = getModel();
